From b8e6d0637262594ae1f71f5cdadf8a3dcab33f43 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?utf8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Sat, 24 Mar 2018 10:26:51 +0000 Subject: [PATCH] GDK W32: Don't check dest_surface for != NULL on button events dest_surface is going to always be NULL for source contexts. Previously we used to put the root window there to pass this check, but root windows are gone (and root surfaces never existed to begin with), so we have to adapt. https://bugzilla.gnome.org/show_bug.cgi?id=773299 --- gdk/win32/gdkdnd-win32.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gdk/win32/gdkdnd-win32.c b/gdk/win32/gdkdnd-win32.c index e2d48e3ecf..53e72215d6 100644 --- a/gdk/win32/gdkdnd-win32.c +++ b/gdk/win32/gdkdnd-win32.c @@ -3099,8 +3099,7 @@ gdk_dnd_handle_button_event (GdkDragContext *context, return FALSE; #endif - if ((gdk_drag_context_get_selected_action (context) != 0) && - (gdk_drag_context_get_dest_surface (context) != NULL)) + if ((gdk_drag_context_get_selected_action (context) != 0)) { g_signal_emit_by_name (context, "drop-performed", gdk_event_get_time ((GdkEvent *) event)); -- 2.30.2